package net.xinshi.service.atom.impl;

import net.xinshi.dal.automapper.mapper.ApiMapper;
import net.xinshi.dal.automapper.model.Api;
import net.xinshi.service.atom.IAtomApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/27.
 */
@Repository
public class AtomApiServiceImpl extends AtomBaseServiceImpl<Api> implements IAtomApiService {
    @Autowired
    protected ApiMapper apiMapper;

    @Override
    public List<Api> searchApiByCriteria(Map<String, Object> map) {
        return apiMapper.searchApiByCriteria(map);
    }

    @Override
    public Integer searchApiCount(Map<String, Object> map) {
        return apiMapper.searchApiCount(map);
    }
}
